package com.apes.scm.settle.payment.repository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.scm.settle.payment.model.PaymentItem;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * 付款
 *
 * @author wuq
 * @create 2018-11-02 15:57
 */
public interface PaymentItemRepository extends CustomRepository<PaymentItem,String> {

    @Query(value = "select T from PaymentItem T where T.payment.state <> 'delete' and T.origin = :origin")
    PaymentItem findByOrigin (String origin);
}
